﻿function solonumeros(e) {
    var key;

    if (window.event) // IE
        key = e.keyCode;
    else if (e.which) // Netscape/Firefox/Opera
        key = e.which;

    if (key < 48 || key > 57)
        return false;

    if (key == 8)
        return true;

    return true;
}

function solodecimales(e) {
    var key;
    if (window.event) // IE
    {
        key = e.keyCode;
    }
    else if (e.which) // Netscape/Firefox/Opera
    {
        key = e.which;
    }

    if (key == 8 || key == 46) {
        return true;
    }

    if (key < 48 || key > 57) {
        return false;
    }
    return true;
}